<h1>不充会员别想走</h1>
<div class="user"></div>


<script>
    let uname = localStorage.getItem('uname')
    if((new Date).getTime()>localStorage.getItem('expires'))
    {
        uname = null || sessionStorage.getItem('uname')
    } 
    // else {
    //     uname = sessionStorage.setItem('uname')
    // }
    if(uname){
        document.querySelector('.user').innerHTML = `
        ${uname}
        <a href = './退出页面.html'>没钱充不起会员，先撤退了</a>
        `
    } else {
        document.querySelector('.user').innerHTML = `
        <a href = './登录页面.html'>充完钱重新新登陆一把</a>
        `
    }
</script>